using System;
using System.Windows.Forms;

using FreeFlow.Administration;

namespace FreeFlowAdministrator
{
	/// <summary>
	/// Summary description for FindFolderAdaptor.
	/// </summary>
	public class FindFolderAdaptor : Adaptor
	{
    private Server server;
		public FindFolderAdaptor(Server server)
		{
      this.server = server;
		}

    public override string Text
    {
      get
      {
        return "Find Folder";
      }
    }

    public override int ImageIndex
    {
      get
      {
        return 9;
      }
    }

    public override Control GetRenderer()
    {
      FindFolderControl control = new FindFolderControl();
      control.LoadServer(server);
      return control;
    }

    public override object Object
    {
      get
      {
        return server;
      }
    }
	}
}
